<!--
 * @FilePath: 西游记.html
 * @Author: 苏苏少年
 * @Date: 2022-05-14 19:16:34
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>西游记</title>
    <style>
        html{
            width: 100%;
        }
        body{
            overflow: hidden;
            margin: 0;
            background-image: url("img/bac.webp");
        }
        .footer{
            width: 760px;
            height: 240px;
            margin: 300px auto;
            /* background-color: cadetblue; */
        }
        .role{
            float: left;
            width: 25%;
            height: 100%;
            /* background-color: chocolate; */
           background-repeat: no-repeat;
           /* 不重复 */
           background-position-y: center;
           /* y轴方向居中 */
        }
        .role1{
            background-image: url("img/west_01.png");
            animation: su 1.4s steps(8) infinite; 
          /*  steps(8)  步数  infinite 无限循环 */
        }
        .role2{
            background-image: url("img/west_02.png");
            animation: susu 1.4s steps(8) infinite; 
        }
        .role3{
            background-image: url("img/west_03.png");
            animation: sususu 1.4s steps(8) infinite; 
        }
        .role4{
            background-image: url("img/west_04.png");
            animation: susususu 1.4s steps(8) infinite; 
        }
        @keyframes su{
            0%{
                background-position: 0px;
            }
            100%{
                background-position: -1600px;
            }
        }
        @keyframes susu{
            0%{
                background-position: 0px;
            }
            100%{
                background-position: -1600px;
            }
        }
        @keyframes sususu{
            0%{
                background-position: 0px;
            }
            100%{
                background-position: -1360px;
            }
        }
        @keyframes susususu{
            0%{
                background-position: 0px;
            }
            100%{
                background-position: -1680px;
            }
        }
    </style>
</head>
<body>
    <div class="footer">
        <div class="role role1"></div>
        <div class="role role2"></div>
        <div class="role role3"></div>
        <div class="role role4"></div>
    </div>
</body>
</html>